package org.jplearning.io;

import java.util.Hashtable;
import java.util.LinkedList;
import java.util.List;

public class WordEntryMeaning {
	private List<String> tags;
	private Hashtable<String, String> translation;
	private Hashtable<String, String> definition;
	
	private List<WordEntryExample> examples;
	
	public WordEntryMeaning() {
		tags = new LinkedList<String>();
		translation = new Hashtable<String, String>();
		definition = new Hashtable<String, String>();
		examples = new LinkedList<WordEntryExample>();
	}
	
	public void addTag(String tag){
		tags.add(tag);
	}
	
	public void addTranslation(String idioma, String traduccion){
		translation.put(idioma, traduccion);
	}
	
	public void addDefinition(String idioma, String definicion){
		definition.put(idioma, definicion);
	}
	
	public void addExample(WordEntryExample example){
		examples.add(example);
	}

	public void setTags(List<String> curTags) {
		this.tags = curTags;
	}
}
